package com.site.controller;

import com.site.common.R;
import com.site.common.annotation.ParamXssPass;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * XSS 过滤测试 如：eval('console.log(1000)');dsds;dsdsds
 */
@RestController
public class XssController extends BaseController {

    @ParamXssPass
    @PostMapping("/xss")
    public R<String> test(String content){
        return R.ok(content);
    }
}
